package com.itbbfx.service.system;

import com.itbbfx.entity.DataGridView;
import com.itbbfx.entity.Menu;
import com.itbbfx.entity.User;
import com.itbbfx.entity.UserRole;

import java.util.List;

public interface UserService {
    int queryUserName(String loginname);

    User queryLoginUser(String loginname);

    List<User> selectAllUser(User user);

    String deleteUser(int userid);

    int resetUserPwd(int userid);

    String addUser(User user);

    String updateUser(User user);

    List<Menu> queryUserRoleAuth(Integer roleid);

    int saveUserRole(UserRole userRole);

    DataGridView initUserRole(int userid);

    int queryUserIdentity(String identity);

    User queryUser(Integer userid);

    int updateLoginUser(User user);

    int editPwd(User user);
}